package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalDateFieldMetadata;
import jmine.tec.datadigester.positional.writer.DatePositionalFieldWriter;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos Date
 * 
 * @author israel.crisanto
 */
public class DatePositionalWriterFactory implements PositionalWriterFactory<PositionalDateFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalDateFieldMetadata meta) {
        return new DatePositionalFieldWriter(meta);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalDateFieldMetadata> getFieldMetadataType() {
        return PositionalDateFieldMetadata.class;
    }
}
